package com.heima.api;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 条装客户端
 *
 * @author DiXiaoNie
 * @date 2022/12/22
 * @since 2022/12/22 16:04
 */
@FeignClient("leadnews-article")
public interface ArticleFeignClient {


    /**
     * 保存
     *
     * @param dto dto
     * @return {@link ResponseResult }
     * @author DiXiaoNie
     * @date 2022/12/22
     */
    @PostMapping("/api/v1/article/save")
    public ResponseResult save(@RequestBody ArticleDto dto);
}
